package com.example.treasure_back.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.aggregation.ArrayOperators;

import java.sql.Time;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("essay")
public class EssayModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String author;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    private String content;
    private Integer likeNum;
    private Integer dislikeNum;
    private String imageUrl;
}
